<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>头像移入效果</title>
    <style>
        .avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(0, 0, 0, .5);
        }

        .avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            transform-origin: right center;
            transition: transform .3s;
        }

        .avatar:hover img {
            transform: rotate(-135deg);
        }
    </style>
</head>
<body>
    <div class="avatar">
        <img src="../image/96573f9c22217f01ea0cee45de1f6676.jpeg" alt="">
    </div>
</body>
</html>